# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Kevin Dodd <jesin00@gmail.com>
# Contributor: Tianjiao Yin <ytj000@gmail.com>

pkgname=mathjax
pkgver=3.2.2
pkgrel=1
pkgdesc='An open source JavaScript display engine for mathematics that works in all modern browsers'
url='https://www.mathjax.org/'
arch=(any)
license=(Apache)
source=("$pkgname-$pkgver.tar.gz::https://github.com/mathjax/MathJax/archive/$pkgver.tar.gz")
sha256sums=('4206b9645a97f431018d0b6c4021c98607d49ba4dc129f4f2ecce675e2fcba11')

package() {
  cd MathJax-$pkgver
  mkdir -p "$pkgdir"/usr/share
  cp -a es5 "$pkgdir"/usr/share/mathjax
  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}
